package com.suxin.event;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.ApplicationEvent;

/**
 * @author Tang
 * @classname ApplicationEventMulticaster
 * @description [ 事件派发器 ]
 * @date 2021/3/17 13:27
 */
public interface ApplicationEventMulticaster extends ApplicationContextAware {

    void publish(ApplicationEvent applicationEvent);

    @Override
    void setApplicationContext(ApplicationContext applicationContext) throws BeansException;
}
